import {createApp} from 'vue'
import pinia from './stores'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import App from './App.vue'
import router from './router'
import './styles/index.scss'
import ElSvg from './components/SvgIcon/ElSvg'
import Category from './components/Category/index.vue'
import directive from '@/directive/has'
import './permission'

const app = createApp(App)

ElSvg(app)
// 注册全局组件（三级列表）
app.component('Category', Category)

app.use(pinia)
    .use(router)
    .use(ElementPlus, {
        locale: zhCn,
    })
    .use(directive)
    .mount('#app')
